package com.xtoad.ecms.baseinfo.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 登录信息DTO类
 *
 * @author xtoad
 * @date 2020/05/29
 */
public class LoginDTO implements Serializable {

    private static final long serialVersionUID = -5641997445189688428L;

    /**
     * 登录名
     */
    @NotNull(message = "登录名不能为空")
    @NotBlank(message = "登录名不能为空")
    private String loginNo;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 验证码
     */
    private String validCode;


    /**
     * 获取 登录名
     */
    public String getLoginNo() {
        return this.loginNo;
    }

    /**
     * 设置 登录名
     */
    public void setLoginNo(String loginNo) {
        this.loginNo = loginNo;
    }

    /**
     * 获取 密码
     */
    public String getPassword() {
        return this.password;
    }

    /**
     * 设置 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取 验证码
     */
    public String getValidCode() {
        return this.validCode;
    }

    /**
     * 设置 验证码
     */
    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }

    @Override
    public String toString() {
        return "LoginDTO{" +
                "loginNo='" + loginNo + '\'' +
                ", password='" + password + '\'' +
                ", validCode='" + validCode + '\'' +
                "} " + super.toString();
    }
}
